import request from '@/api/index'
import { ResPage, User } from "@/api/interface/index";
import { type userItemInterface } from "@/mock/db/mockUserList"
/**
 * @name 用户管理模块
 */
// 获取用户列表
export const getUserListAPI = () => {
    return request.get<ResPage<User.ResUserList>>( '/api/user/list');
  };
/**
 * @name 添加用户
 */
// 获取用户列表
export const addUserAPI = (data:userItemInterface) => {
    return request.post<ResPage<User.ResUserList>>( '/api/user/list',data);
  };
/**
 * @name 获取性别
 */
// 获取用户列表
export const getGenderOptionsAPI= () => {
    return request.get<ResPage<User.ResUserList>>( '/api/user/gender');
  };
/**
 * @name 获取性别
 */
// 获取用户列表
export const getUserDepartmentAPI= () => {
    return request.get<ResPage<User.ResUserList>>( '/api/user/userDepartment');
  };